#import "TabBarViewController.h"
#import "UserInfoViewController.h"
#import "ImageViewController.h"
#import "SettingViewController.h"
@interface TabBarViewController ()
@end

@implementation TabBarViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
    /* 创建转场动画 */
    CATransition *transition = [CATransition animation];
    transition.duration = 1.0; // 动画时间
    transition.type = kCATransitionFade; // 动画样式
    transition.subtype = kCATransitionFromRight; // 动画方向
        

    SettingViewController * userVC = [[SettingViewController alloc] init];
    UINavigationController * userNav = [[UINavigationController alloc] initWithRootViewController:userVC];
    [self.navigationController.view.layer addAnimation:transition forKey:kCATransition];
    [self.navigationController pushViewController:userVC animated:NO];
    userNav.navigationBar.translucent = NO;

    ImageViewController * imgVC = [[ImageViewController alloc] init];
    UINavigationController * imgNav = [[UINavigationController alloc] initWithRootViewController:imgVC];
    [self.navigationController.view.layer addAnimation:transition forKey:kCATransition];
    [self.navigationController pushViewController:imgVC animated:NO];
    imgNav.navigationBar.translucent = NO;
    self.tabBar.translucent = NO;
    self.viewControllers = @[userVC,imgVC];
}

-(void)viewWillAppear:(BOOL)animated{}

- (void)didReceiveMemoryWarning{
    [super didReceiveMemoryWarning];
}

@end
